#!/bin/bash

practice_dirs=("1_MPI_Merge_Sort" "2_OpenMP_Count" "3_OpenMP_GEMV" \
               "4_OpenMP_GEMM" "5_SIMD_GEMV")

for practice_dir in ${practice_dirs[@]}
do
    echo "------------------- run practice ${practice_dir} -------------------"
    pushd ${practice_dir}
    make clean && make && make run
    popd
done

